package org.swqsbssddqs.shortlink.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.swqsbssddqs.shortlink.admin.dao.entity.UserDO;
import org.swqsbssddqs.shortlink.admin.dto.req.UserLoginReqDTO;
import org.swqsbssddqs.shortlink.admin.dto.req.UserRegisterReqDTO;
import org.swqsbssddqs.shortlink.admin.dto.req.UserUpdateReqDTO;
import org.swqsbssddqs.shortlink.admin.dto.resp.UserLoginRespDTO;
import org.swqsbssddqs.shortlink.admin.dto.resp.UserRespDTO;

public interface UserService  extends IService<UserDO> {
    UserRespDTO getUserByUsername(String username);

    Boolean hasUsername(String username);
    void register(UserRegisterReqDTO requestParam);

    void update(UserUpdateReqDTO userUpdateReqDTO);

    UserLoginRespDTO login(UserLoginReqDTO userLoginReqDTO);

    Boolean checkLogin(String username, String token);

    void logout(String username, String token);
}
